package cupk.abner;

public class CipherMachine {
    public String encrypt(String plainText){
        StringBuilder es = new StringBuilder();
        char[] chars = plainText.toCharArray();
        for(char ch : chars){
            String c = String.valueOf(ch % 7);
            es.append(c);
        }
        System.out.println("加密后内容: " + es.toString());
        return es.toString();
    }
}